SYBASE Adaptive Server Anywhere
*******************************

Maintenance Release Notes for Version 8.0.0
*******************************************

Description of available downloads
==================================

    Express Bug Fixes
    ===================
    A subset of the software with one or more bug fixes. The bug fixes are 
    listed in the "readme" file for the update. A Bug Fix update may only be
    applied to installed software with the same version number.

    Some testing has been performed on the software, but full testing has not
    been performed. Customers are discouraged from distributing these files
    with their application unless they verify the suitability of the software
    themselves.

    Verified Bug Fixes
    ==================
    A complete set of the software with one or more bug fixes. The bug fixes are 
    listed in the "readme" file for the update. A Bug Fix update may only be
    applied to installed software with the same version number.

    Full testing has been performed on the software.

    Maintenance Release
    ===================
    A complete set of software that upgrades installed software from an older
    version with the same major version number (version number format is 
    major.minor.patch). Bug fixes and other changes are listed in the "readme"
    file for the upgrade.

    For answers to commonly asked questions please use the following URl:
    http://my.sybase.com/detail?id=1019567

Introduction
============
Release 8.0.0 is a regularly-scheduled maintenance release,
containing fixes to reported problems with the software
as well as some new features.

8.0.0 bug fixes
===============
The following is a list of bugs fixed in this version of the software,
as compared to the 8.0.0 release.



                      ******************************                      
                      ** Adaptive Server Anywhere **                      
                      **                          ** 
                      **   DBLIB Client Library   **                      
                      ******************************                      

================(Release Build  - Engineering Case #264435)================

When fetching more than 65536 rows, with prefetch enabled, extra rows 
could have, (under rare circumstances), appeared in the result set.  
This extra rows no longer appear.



================(Release Build  - Engineering Case #265839)================

In rare cases, the client could have crashed while connecting, if a 
communication error occured.  This problem was very timing dependent 
and could be caused by the server shutting down while the client was 
connecting or a network error.  The client no longer crashes and now 
gives a connection error.



================(Release Build  - Engineering Case #266363)================

The estimated number of rows returned by a single-row group by query 
block was being incorrectly set. The correct estimate is now set to 
1 row.


================(Release Build  - Engineering Case #241458)================

Negative or zero SQLDA sqllen values for variable length types could 
cause memory to be overwritten, resulting in client application crashes 
or other problems.  Now invalid sqllen values return the error SQLE_INVALID_SQLLEN.  
Also, for a variable length type where sqldata is not NULL and sqllen 
is 0, no data is written to the user's sqldata buffer.


================(Release Build  - Engineering Case #262520)================

The Timeout parameter wasn't supported on NetWare when using SPX. It 
is now supported. 





                      ******************************                      
                      ** Adaptive Server Anywhere **                      
                      **                          ** 
                      **   ODBC Client Library    **                      
                      ******************************                      

================(Release Build  - Engineering Case #255545)================

When using the SQLTables function to query tables, the table type can 
now be either SYSTEM or SYSTEM TABLE
for querying system tables.



================(Release Build  - Engineering Case #265145)================

Calling the ODBC function SQLTables(), where the table type parameter 
was a quoted string (e.g. 'TABLE'), could have caused the ODBC driver 
to crash.  This has now been fixed.


================(Release Build  - Engineering Case #232165)================

SendError wasn't sending the error substitution strings back in the 
case where the first string was empty.



================(Release Build  - Engineering Case #236630)================

When attempting to translate or count the length of a UTF8 character 
whose leading byte indicated it was a 4,5, or 6-byte multi-byte character, 
the ODBC driver could go into an infinite loop.




                      ******************************                      
                      ** Adaptive Server Anywhere **                      
                      **                          ** 
                      **   OLEDB Client Library   **                      
                      ******************************                      

================(Release Build  - Engineering Case #242412)================

ASAProv was not always returning numeric values to ADO bound grid controls 
properly, causing them to not be displayed correctly.This was due to 
ADO not being passed the status and length of field values when calling 
IRowset::GetData. This has now beed fixed.


================(Release Build  - Engineering Case #258724)================

The ASA Provider was setting the CHAINED option to OFF, thus each statement 
was being committed individually, causing any rollbacks to fail.The 
default value of CHAINED option is ON which means a transaction is implicitly 
started before any statement. The Provider now does not change this 
option.


================(Release Build  - Engineering Case #233564)================

This fix resolves several ADO problems:
- Parameterized queries were not working
- Forward-only cursors could only get the first record
- Read-only cursors were not read-only
- Cursor type was changed after the ADO recordset was opened



================(Release Build  - Engineering Case #262783)================

An ADO Stored Procedure call would have failed if the parameters were 
created by calling the ADO method Refresh and the CommandType was adCmdStoredProc. 
This has now been fixed.


================(Release Build  - Engineering Case #262935)================

When testing OLE DB IDBProperties::GetPropertyInfo, the MDAC Local Test 
Manager reported failures. Some ASA OLE DB properties had a description 
which was inconsistent with OLE DB spec, other properties were in wrong 
property group.  Fixed by changing the OLE DB properties' description 
and group.


================(Release Build  - Engineering Case #263127)================

According to the OLE DB spec, the IDBProperties::GetPropertyInfo should 
return information about all properties supported by the provider. When 
testing this methodusing the MDAC Local Test Manager, several failures 
were reported. These were fixed by checking supported and unsupported 
properties and returning the appropriate HRESULTs.


================(Release Build  - Engineering Case #265348)================

The provider was failing to convert BigInt parameters correctly on Windows 
XP, although these conversions worked fine on Windows NT/2000. This 
was due to the MDAC version on Windows XP being 2.7. After upgrading 
to MDAC 2.7, the problem could be seen on Windows NT/2000 as well.The 
provider uses the OLE DB Data Conversion Library to convert different 
OLE DB data types. When initializing the Library, IDCSetInfo::SetInfo 
should be called to furnish the Data Conversion Library with information, 
such as the provider version, that affect how conversions are performed. 
Fixed by calling IDCSetInfo::SetInfo to set the OLE DB version to 2.50.


================(Release Build  - Engineering Case #265877)================

When calling ADO Recordset.Delete, if the current record couldn't be 
deleted for some reason, (ie data integrity constraint violation), the 
application wouln't get the error messages. This has now been fixed.



================(Release Build  - Engineering Case #265878)================

When calling ADOCE Recordset.Delete, to delete the current record, if 
the record couldn't be deleted ( for some reasons, ie. data integrity 
constraint violation ), the app could have crashed. This has now been 
fixed.




                      ******************************                      
                      ** Adaptive Server Anywhere **                      
                      **                          ** 
                      **          Other           **                      
                      ******************************                      

================(Release Build  - Engineering Case #257670)================

Static SQL, in particular create and alter procedure/trigger statements,  
executed within an ESQL program could fail to compile if certain statements 
were included in the static sql statement.

For example, the following fails to compile using SQLPP
    EXEC SQL CREATE TRIGGER insTrigger AFTER INSERT ON Notification
        BEGIN
            DECLARE tblId INT;
            SELECT table_id into tblId FROM SYSTABLE;
            CALL insertKickProc(tblId);
        END;

The SQL is valid and will execute successfully in DBISQL.
The workaround, and suggested method of executing static SQL in an 
embedded SQL program is to use the EXECUTE statement.


================(Release Build  - Engineering Case #230765)================

If two tables with the same name, owned by different users, existed 
in the database, then a call to the object_id procedure for that table 
name, without specifying the owner, would result in the error "SELECT 
returns more than one row".





                      ******************************                      
                      ** Adaptive Server Anywhere **                      
                      **                          ** 
                      **          Server          **                      
                      ******************************                      

================(Release Build  - Engineering Case #226722)================

ASA's Transact SQL compatibility option ANSINULL, if set to OFF, would 
alter the semantics of any equality (=) or inequality (!=) comparison 
so that the comparison would evaluate to either TRUE or FALSE (but not 
UNKNOWN). Hence in ASA all equality or inequality comparisons utilize 
two-valued logic (not three-valued) if ANSINULL was set to OFF. However, 
in ASE, two valued logic is used only for the following special cases:

<expr> = NULL
<expr > != NULL
<expr> = @var  // a variable
<expr> != @var.

<expr> must be a relatively simple expression, referencing only columns, 
variables, and literals (ie. no subqueries, functions, and the like).

All other comparisons in ASE utilize three-valued logic, and match 
ANSI standard semantics. The error with existing ASA behaviour is that 
the query

Select *
From R,S
Where R.x = S.x

over instances

R(x,y)

NULL, 3

S(x,z)

NULL, 4

would, with ANSINULL=OFF, return the row 

NULL,3,NULL,4 

in the result, instead of the empty set.



================(Release Build  - Engineering Case #257310)================

Histograms weren't being updated during query processing, so the optimizer 
didn't "learn" about data distributions.


================(Release Build  - Engineering Case #255437)================

Prior to this fix, the optimization logging output of pruned stategies 
could contain residual information from previous strategies, making 
the graphical plan output difficult to assess.



================(Release Build  - Engineering Case #231289)================

Engine could crash or go into an infinite loop when creating a ptree 
index. The bug would only occur when creating a large index relative 
to available cache.  A possible work around would be to increase the 
cache size, or to attempt the index creation immediately after starting 
the engine.




================(Release Build  - Engineering Case #255522)================

The ResultSetMetaData.getTableName method is a new method supported 
by Adaptive Server Anywhere. Unfortunately for a column of type long 
varchar, the method returned a table name of the form db.owner.tablename 
while the method returned just tablename for all other column types. 
This inconsistency was breaking direct table editing which was one of 
the new features in Beta 3.


================(Release Build  - Engineering Case #256028)================

Server could have crashed when creating a ptree index on Solaris or 
CE.  Note that using a Solaris or CE server on a Vail database created 
on an x86 platform, (by a server without this fix), could result in 
a crash.



================(Release Build  - Engineering Case #258097)================

The server could hang while executing Java code in the VM. This was 
due to a deadloack that could occur after a context switch in the VM.


================(Release Build  - Engineering Case #242009)================

If a single server was used to run both a local database and a remote/proxy 
database, and several simultaneous requests were made to the proxy database, 
then the server could have hung. This problem has now been resolved 
for ODBC based remote connections. The problem cannot be fixed for JDBC 
based remote connections at this time.


================(Release Build  - Engineering Case #255140)================

In order to perform a wide insert using jConnect, customers will normally 
attemtp to perform a batch insert
as follows:
	stmt = con.prepareStatement( "insert into t values(?, ?, ?)" );
	for( i = 0; i < 1000; i++ )
	{
		stmt.setInt( 1, some int value );
		stmt.setString( 2, some char value );
		stmt.setDouble( 3, some double value );
		stmt.addBatch();
	}
	stmt.executeBatch();
	stmt.close();

The above will eventually send a single request to the server consisting 
of 1000 inserts with host variables and then a description of the 3*1000 
host variables. We parse these 1000 inserts as a batch, but since host 
variables are not allowed in batches we subsequently fail with a column 
not found error. jConnect batches with host variables are now supported 
in ASA 8.0 and above.



================(Release Build  - Engineering Case #240922)================

The definition for the following function would be stored in SYSPROCEDURE 
as a procedure, rather than as a function. The function would behave 
correctly until the database was unloaded and rebuilt, at which point 
it would no longer be recognized as a function. 

CREATE function _t (@Z varchar(10))
returns VARCHAR(40)
BEGIN
   SELECT @Z='A';
   RETURN(@Z);
END

This function now causes a syntax error, since it attempts to mix Watcom-SQL 
and Transact-SQL dialects. Functions must be defined using the Watcom-SQL 
dialect.


================(Release Build  - Engineering Case #258440)================

If a user accidentally prepares a procedure call specifying a host variable 
argument twice, the engine will crash if an attempt is made to describe 
the INPUT variables for the procedure.


================(Release Build  - Engineering Case #259565)================

Character set translation between client and server is now enabled by 
default. Previously, character set translation had to be enabled by 
specifying the "-ct" switch. Character set translation can be turned 
off by specifying "--ct".


================(Release Build  - Engineering Case #239652)================

When a stored procedure is created which has a result set but no result 
set clause is specified in the procedure definition, the engine will 
dynamically build one.  However, if the engine crashes before the next 
checkpoint, when it recovers the procedure creation the result set is 
not rebuilt.


================(Release Build  - Engineering Case #260578)================

The error "Fatal Error: Disk Full" could be displayed when disk space 
was still available.  A failed operating system write function call 
was being interpreted as a disk full error.  In this particular situation 
the cause for the write failure is unknown.  The problem only occured 
on Windows 2000 and only after the operating system issued a 'low virtual 
memory' warning to the desktop.  The operating system has not set an 
error state it only informs the server that the entire write did not 
succeed.  The server will now display the message 'Disk write failure 
- transactin rolled back'.


================(Release Build  - Engineering Case #259568)================

It was possible, in very rare cases, for a client request to hang after 
it was cancelled.  This has been fixed.


================(Release Build  - Engineering Case #257859)================

Creating a view and then removing a column from the underlying table 
that the view was based on would cause the engine to crash when the 
view was selected from.


================(Release Build  - Engineering Case #262085)================

If a trigger was invoked from different scopes, and it contained an 
INSENSITIVE cursor or an UPDATE/INSERT/DELETE cursor that used a work 
table, then the engine could crash or use incorrect values of the 'new' 
values in the trigger.



================(Release Build  - Engineering Case #262086)================

Hash join could generate fewer rows than expected in low-memory situations. 
In some situations, duplicate rows could also be generated.


================(Release Build  - Engineering Case #262106)================

Attempting to insert a NULL into a java column using host variables 
would fail in a variety of ways. An example of some sample code which 
attempts this is:

	s = _connection.prepareStatement(
	        "INSERT INTO \"DBA\".\"javaTest\" VALUES(?,?)" );
	s.setNull( 1, Types.JAVA_OBJECT );
	s.setNull( 2, Types.JAVA_OBJECT );
	s.executeUpdate();
	s.close();

In this case the table javaTest has two java columns and we are attempting 
to set both to NULL. The above now
works.


================(Release Build  - Engineering Case #262608)================

When the merge-join operator was used to implement an outer join, some 
rows could have been incorrectly NULL-supplied.  The consequence was 
usually a result row from the join where left and right sides were NULL-supplied.


================(Release Build  - Engineering Case #262633)================

Indexes created by the server could have been corrupt. The corruption 
would usually result in index scans returning only the first row of 
a table.


================(Release Build  - Engineering Case #262544)================

Computed columns can be used to store  the value of an expression in 
each row of a table. A performance-improving feature that was implemented 
in 6.0.0, but has until recently been missing from Vail was the ability 
to avoid evaluating the same expression if it can be satisfied from 
the computed column. For example, consider the following:

create function F( x integer ) returns integer
begin
	message 'F('||x||')';
	return x * x;
end;
create table T( a integer );
insert into T(a) values(1);
insert into T(a) values(200);

Executing the following query:
select a, F(a) from T
will show the engine messages window:
F(1)
F(2)
This indicates that function 'F' was invoked twice, once for each row 
in the result set of the query.  If we add a computed column 'aa' as 
follows:
alter table T add aa integer compute ( F(a) )
then we will see 'F(1)' and 'F(2)' appear as the values of 'aa' are 
computed during the 'alter table'. However, if we now run the query:
select a, F(a) from T
we will observe that there are no messages added to the engine message 
window.  The expression 'F(a)' has been computed by reading the stored 
value from the computed column.

This feature allows expensive functions to be computed once for each 
row of a table, without requiring that the functions be replaced with 
the computed column in the originating query. For example, if there 
is an application that has many queries that compute 'F(T.x)' for a 
table T, then adding a computed column to T with the value F(T.x) would 
permit these queries to execute without evaluating the function for 
each returned row.

It is important to note that this feature may cause unexpected results 
if the computed expression is not a 'pure' function that always returns 
the same results for the same arguments. For example, consider a function 
G defined as follows:

create function G( x integer ) returns integer
begin
	declare memp integer;
	select max( emp_id ) into memp from employee where dept_id = x;
	return memp;
end;

If table 'R' has a computed column 'c2' that has the value 'G(R.x)', 
and we evaluate:
select x, G(x) from R
then the value returned for the second column of the result set will 
be the stored computed value. This may not be the same as the current 
value of G(x) if the employee table has changed since the last update 
to the row of R which recomputed R.c2.

The matching of expressions requires that the computed expression is 
syntactically identical to the expression that appears in queries. Further, 
expressions that contain 'IF' and 'CASE' expressions are not shared 
by this feature.  The domain of the computed column must be the same 
as the domain of the expression.


================(Release Build  - Engineering Case #262707)================

An aliased CAST or CONVERT expression could crash server. For example:
	SELECT 
	    CAST((NULL) as char(10)) as c1,   
	    CAST((NULL) as char(6)) as c2,   
	    1 as c3
	FROM DUMMY
	GROUP BY c1,c2,c3

This problem was introduced 2001/10/16 as part of a fix for issue 259123 
and has now been fixed.


================(Release Build  - Engineering Case #262789)================

A statement like:
	SELECT @var = 1 WHERE @@error = 0
would be treated as if the WHERE clause was not present. If contained 
within a stored procedure, the WHERE clause would not appear in the 
procedure definition stored in SYSPROCEDURE.

Use of this type of conditional assignment statement is not recommended. 
Instead, use an IF statement to control the assignment. This will perform 
better, be more readable, and is the more commonly-accepted practice.


================(Release Build  - Engineering Case #262856)================

Foreign keys referencing a table are dropped when the primary table 
is dropped.  If there was a cursor open that used one of these foreign 
keys it was likely that the engine would crash. Fixed by closing all 
cursors that reference any foreign tables when we drop the primary table.


================(Release Build  - Engineering Case #262704)================

An error was not raised during parsing an INSERT statement if the column 
list contained items that were not columns. This may have caused a server 
crash.


================(Release Build  - Engineering Case #262705)================

The optimizer was incorrectly costing a complete index scan, due to 
the use of an invalid cache size.


================(Release Build  - Engineering Case #263000)================

The default plan displayed in ISQL has been changed  to Graphical.


================(Release Build  - Engineering Case #262841)================

ASA and ASIQ servers would fail to generate a syntax error for statements 
containing invalid usages of the NUMBER(*) function. This has been corrected. 
In addition, changes to the semantics of NUMBER(*) have been made, and 
are outlined below.

In ASA 8.0, NUMBER(*) has been changed so that it returns the value 
of the ANSI row number of each result row. Hence NUMBER(*) can return 
positive or negative values, depending on how the application scrolls 
through the result set. For INSENSITIVE cursors, the value of NUMBER(*) 
will always be positive since the entire result set is
materialized at OPEN.

The NUMBER(*) function can participate in complex expressions in a 
SELECT list or in the SET clause of an UPDATE statement. However, NUMBER(*) 
is subject to the following restrictions:

1) NUMBER(*) cannot be used in DELETE statements. It can be used in 
an UPDATE statement, but only in the SET clause. It can be used in an 
INSERT statement, but only as part of query specification in an INSERT 
.... FROM SELECT.

2) NUMBER(*) cannot be used in a query specification at any point where 
its value would be required prior to computing the SELECT list expressions 
of a result row. Hence NUMBER(*) cannot be used in a WHERE clause, a 
HAVING clause, a subquery, a query involving aggregation, GROUP BY or 
DISTINCT, or a query expression containing UNION ALL.

3) NUMBER(*) is not permitted in a derived table.

4) An expression involving NUMBER(*) can be given an alias so as to 
permit the renaming of the result set column in a DESCRIBE, but there 
can be no references to the alias in the entire statement.

5) NUMBER(*) is permitted in a view, however the view and the query 
(or view) utilizing it are subject to the restrictions above. Furthermore, 
the view column corresponding to the expression involving NUMBER(*) 
can only be referenced at most once in the query or outer view.

6) NUMBER(*) is never null-supplied. Hence any view involving NUMBER(*) 
cannot participate as a null-supplying table in a LEFT or FULL OUTER 
JOIN.

If any of these restrictions are violated, the server will now
generate a syntax error with SQLCODE -864 and SQLSTATE 42W71.


================(Release Build  - Engineering Case #262556)================

The assertion: 101513:  "Relocating a pointer beyond the allocation 
size" could be triggered if computed columns were used, and the server 
was running with a small amount of cache.



================(Release Build  - Engineering Case #263155)================

An invalid article containing a reference to a remote table could be 
created. If a publication, containing this article, was subscribed to, 
the server would crash. The server now checks and refuses to create 
an article with a remote  table.



================(Release Build  - Engineering Case #264310)================

An engine crash could have resulted from retrieving the 'Graphical plan 
with statistics' from ISQL for a query that invoked user-defined functions 
or triggers that themselves executed DML statements such as SELECT, 
INSERT, UPDATE, and DELETE.



================(Release Build  - Engineering Case #263124)================

Using BCP IN to load data into a table would usually have caused a server 
hang. This problem has now been fixed.


================(Release Build  - Engineering Case #262550)================

Incorrect results could have been returned for grouped queries, or the 
server could have crashed, when executing queries with sorting or a 
merge-join when very small amounts of cache were available.



================(Release Build  - Engineering Case #263582)================

The statement:
	LOAD TABLE mytable (c1, c2, c3) FROM 'file.dat'
		CHECK CONSTRAINTS OFF DEFAULTS ON
would have given the error "Update operation attempted on non-updatable 
query". Removing the CHECK CONSTRAINTS clause would allow the statement 
to execute correctly. The problem would not arise if all columns in 
the table were being loaded.


================(Release Build  - Engineering Case #263507)================

When creating a foreign key, if the list of referencing columns was 
null, the list of referenced columns was ignored. The foreign key would 
then have been defined to reference the primary key.
For example, given the following table definitions
:
create table ptab (
	k1c1 int,
	 k1c2 int,
	 k3 int unique,
           primary key (k1c1, k1c2) );
         
create table ftab(
	k1c1 int,
	k1c2 int,
	k3 int,
	foreign key FK1 references ptab,
	foreign key FK2 references ptab (k3) );
         
both FK1 and FK2 would reference the primary key of ptab, but FK2 should 
reference ptab.k3. In fact, the list of referenced columns for FK2 could 
include non-existent columns or the wrong number of columns. None of 
these problems exists if a list of referencing columns was supplied, 
as in:
	// . . .
	foreign key FK2 (k3) references ptab (k3) );
Now, if there are no referencing columns, a list equal to the referenced 
columns is used.



================(Release Build  - Engineering Case #262953)================

UPDATE, INSERT, and DELETE statements and SCROLL/KEYSET DRIVEN cursors 
could have failed without reporting an error, if an attempt to lock 
a row failed, (for example due to a deadlock condition). An error is 
now reported.


================(Release Build  - Engineering Case #264117)================

An invalid query containing an aggregate function in the GROUP BY clause 
could crash the server.
For example:
	Select count(*)
	from product
	group by count(*)


================(Release Build  - Engineering Case #264126)================

When attempting to get a connection property for a connection which 
had just disconnected, the server could have crashed.  This could show 
up when dbconsol or Sybase Central's All Connected Users was used to 
display the current connections while a connection was disconnected.  
The crash was more likely when the server was running on a multi-processor 
machine.  The server now no longer crashes.



================(Release Build  - Engineering Case #264159)================

Putting phantoms locks on rows were possible when scanning ptree indexes, 
thus breaking isolation level 3 semantics.


================(Release Build  - Engineering Case #264317)================

The server would have crashed when forced to convert a long string, 
(greater than pagesize), to a number. Now only the first 255 characters 
are converted.



================(Release Build  - Engineering Case #264314)================

When determining what plan should be used for a particular query, the 
optimizer could erroneously choose an index scan, causing poor performance. 
This has been fixed.


================(Release Build  - Engineering Case #262673)================

A single server should run up to 255 databases, but attempting to start 
the 201st database would result in the error "Unable to start specified 
database". This has now beed fixed.


================(Release Build  - Engineering Case #265342)================

When server-side translation was used and the translated string was 
inflated in size, the server was truncating the translated string to 
the original size before sending it to the application and no truncation 
warning was issued. The problem is now fixed. The engine will now send 
the entire translated string, as long as the bound buffer is big enough.

Note 1: The truncation warning remains incorrect in the following way:

Let 	b :	bound buffer size 
	t :	translated string length 
	p:	pre-translated string length
	send_len 	: min( b, t )
	true_len 	: p	// for the case without blank padding

For the inflation case where we expect a truncation warning, that is 
p < t and b < t, the server is behaving as followings:

1. When b < p < t
	=> send_len = b, true_len = p
	=> Truncation warning issued with indicator set to p.
2. When b = p < t
	=> send_len = b = p = true_len
	=> No truncation warning
3. When p < b < t
	=> send_len = b, true_len = p
	=> No truncation warning

In all the above cases, the correct behavior is to send truncation 
warning with indicator set to t. 

For the deflation case where we expect a truncation warning, that is 
b < t < p, the engine is behaving in the following way
When b < t < p
	=> send_len = b, true_len = p
	=> Truncation warning issued with indicator set to p

In this case, the correct behavior is to send truncation warning with 
indicator set to t.

Note 2: Currently the engine does not decribe column sizes correctly, 
when inflation/deflation occurs during translation.


================(Release Build  - Engineering Case #264438)================

A client connection could hang if a prefetch deadlock error occurred.  
If the connection was hung due to this problem, Sybase Central's All 
Connected Users folder would have reported the current request as "CURSOR_USE_PREFETCH" 
or "ROW_DESCRIPTOR".  A prefetch deadlock occurs when a prefetch request, 
(used to improve fetch performance), receives a deadlock error.  The 
next request after the prefetch should receive the error "Rollback occurred 
due to deadlock during prefetch" (-684) when this occurs and this error 
indicates that the current transaction has already been rolled back.  
The hang has been fixed.


================(Release Build  - Engineering Case #264456)================

Database corruption was possible on on checkpoint.  It is was unlikely 
to occur for databases less than or equal to 32 Meg in size.



================(Release Build  - Engineering Case #264458)================

Calling an external function with a NULL value for an INOUT paramenter, 
would cash a server crash.


================(Release Build  - Engineering Case #264768)================

The server could have crashed or returned the wrong row, if a mixture 
of relative and absolute fetches were used on a cursror whose plan contained 
a nested-block join, (JNB).



================(Release Build  - Engineering Case #265221)================

Using the ALTER TABLE statement to add a computed column to a non-empty 
table could have caused the server to crash. For example, the following 
statement, executed against asademo.db, would crash the server:
	alter table sales_order_items add newcol int compute(line_id + 50);


================(Release Build  - Engineering Case #264805)================

Sequential scans of large tables could corrupt the database. The tables 
must have been at least 100 paqes in size (not counting blob extensions) 
and there must have been concurrent deletes on the table for the problem 
to appear.  Other symptoms include incorrect results being returned 
from queries that used sequential scans.


================(Release Build  - Engineering Case #265349)================

For queries that used host variables, procedure variables, or parameters, 
the optimizer would not estimate the selectivity of predicates using 
the value of the variable, nor would it choose an index using the variable, 
unless the domain of the variable matched the domain of the column in 
the comparison. This has now been fixed.


================(Release Build  - Engineering Case #265398)================

ASA caches the execution plan for statements used in stored procedures, 
triggers, and functions.  The plans are only cached for a single connection. 
Before this change, plans were never reconstructed unless a statement 
left the cache. If the tables used in a cached statement changed to 
a significant degree, the cached plan could be inefficient compared 
to a newly created plan. Now, cached plans are periodically re-optimized.


================(Release Build  - Engineering Case #265589)================

Use of the IDENTITY() function in very simple queries would have generated 
an erroneous "Syntax error near IDENTITY". For more complex requests, 
use of the IDENTITY function in places other than a query's SELECT list 
or an UPDATE statement's SET clause would have lead to unpredictable 
results. The first problem has been corrected; the second problem has 
been corrected by placing restrictions on the use of IDENTITY() identical 
to those restrictions on the usage of the NUMBER(*) function.


================(Release Build  - Engineering Case #265770)================

The server could have hung when dbunload -a was run.  The hang was more 
likely on multiprocessor machines.



================(Release Build  - Engineering Case #265722)================

The -sb command line parameter on the server did not work on Unix platforms.  
The usage text was always displayed.  This parameter now works as expected.



================(Release Build  - Engineering Case #265832)================

Adding Java Support into the Database by executing the command "alter 
database upgrade java ..." where parameters to the java clause could 
be "on",  "jdk '1.3'" etc, requires a restart of the database. If a 
restart is not done and the upgrade is followed by a java command like 
"start java", "sa_java_loaded_classes" system procedure, or object instantiation 
of a class then the server would crashes. Now, an error message is returned 
to the client requesting that they restart the database as an upgrade 
has happened. The new SQL error code is -871.


================(Release Build  - Engineering Case #266181)================

When connected to a server running on  NetWare, using Java in a database 
initialized with JDK 1.3 used to cause exceptions or abend the NetWare 
server.



================(Release Build  - Engineering Case #266112)================

Executing a "start java" command, followed by a "alter database remove 
java" command, would have crashed the server and left the database corrupt. 
Now, a "remove java" is disallowed if a JVM instance is running in the 
database, triggering the error  SQLE_JAVA_DB_RESTART_NEEDED. Also a 
database restart is required only if  "alter database upgrade" includes 
the  "Java  on" clause for a database with no previous Java support.


================(Release Build  - Engineering Case #266183)================

If MDSR encryption was not installed, attempting to create a database 
encrypted using MDSR would fail, but leave behind an invalid .db file. 
The file is now deleted.


================(Release Build  - Engineering Case #265938)================

One of the rewrite optimizations is to add to the WHERE clause conjuncts 
of the form, "col1 IS NOT NULL" and "col2 IS NOT NULL", for each conjunct 
of the form "col1 = col2".  Such new conjuncts are useful if and only 
if col1 and col2 may be NULL (i.e., the columns are not declared with 
"NOT NULL"). Now the additional conjuncts are not inferred if the columns 
may not be NULL.



================(Release Build  - Engineering Case #266452)================

If the Java VM was started under low cache conditions, a variety of 
crashes could occur. The Java startup code was written such that it 
assumed enough memory would always be available. A new error, 'JAVA_VM_INSUFFICIENT_CACHE' 
is now returned.


================(Release Build  - Engineering Case #259169)================

If a stored procedure opened a cursor on another stored procedure and 
then returned a result set, the result set
returned was incorrect. Consider the following example:

create procedure main()
begin
    declare tid int;
    declare tname char(128);
    declare err_notfound exception for sqlstate value '02000';
    declare curs cursor for call sub();
    declare local temporary table outtab( t_id int, t_name char(128) 
) on commit preserve rows;
    
    open curs with hold;
  fetchloop: loop
    fetch next curs into tid, tname;
    if sqlstate = err_notfound then
      leave fetchloop
    end if;
    insert into outtab values(tid, tname);
    commit work;
  end loop fetchloop;
  close curs;
  
  select * from outtab;
end
;

create procedure sub()
begin
    select table_id, table_name from systable;
end
;

When the procedure main() was executed from dbisqlc (i.e. a non-TDS 
app), the result set returned had column headings t_id and t_name and 
there were several rows in the result set as expected. When the procedure 
main() was executed from dbisql (i.e. a TDS app) then the result set 
had column headings table_id, table_name and there were no rows in the 
result set. This problem has now been fixed.



================(Release Build  - Engineering Case #266725)================

A valid authentication signature may sometimes not have worked or in 
some cases caused a server hang.
This problem has now been fixed.


================(Release Build  - Engineering Case #267037)================

Cursors that used outer-join variants of merge-join (either left-outer 
or full-outer) would have given inconsistent results when using absolute 
fetches or changing the direction of fetching. Results could have included 
returning the same row at different absolute fetch locations or returning 
rows at fetch positions beyond the end of the result set. This has been 
fixed.


================(Release Build  - Engineering Case #230372)================

The following statement will return an incorrect value if x is a variable 
with a length greater than 32k:  select length( substr( x, 1) ) from 
dummy


================(Release Build  - Engineering Case #222646)================

The property() function was returning database-specific statistic values 
rather than server-specific values for statistics that were common to 
both (e.g. CacheRead). The db_property() function could not be used 
to obtain database-specific statistics.

The property() function will now return server-specific information 
only, and db_property() has been extended to allow querying of database 
statistics.


================(Release Build  - Engineering Case #227540)================

Qualified column references were silently truncated, permitting erroneous 
queries to execute instead of flagging them with a syntax error.

Examples which should return a syntax error:

Select gnp.product.* from dba.product 
Select * from dba.product where gnp.product.id = 300
Select * from "dba".product as product where "dba".product.id = 300
Select * from (select * from "dba".product) as product where "dba".product.id 
= 300

The customer that reported this problem was developing an application 
that analyzed duplicate sub-schemas that merely had different owners. 
They had (properly) given a correlation name to one of the tables (with 
the same name), but had omitted changing the corresponding predicates. 
Since the owner qualification was silently truncated, the query did 
not return a syntax error but instead computed an erroneous result.

Queries, such as the four examples above, will now trigger a new error 
(SQLCODE -845, SQLSTATE 42U02).


================(Release Build  - Engineering Case #227649)================

When using BCP IN to bcp data into a table, the server would hang on 
shutdown.



================(Release Build  - Engineering Case #227672)================

For indexes, the COMMENT ON statement modifies the 'Remarks' column 
of SYSINDEX. While the syntax supports qualified index names, any qualification 
was silently ignored. This meant that any attempt to modify the remarks 
for an index when another index existed with the same name (but for 
a different table) would not result in an error, but would modify the 
first (and only the first) index of that name found through a search 
of SYSINDEX. Which row in SYSINDEX was modified in the catalog would 
depend on the optimization strategy used for the system cursor.

This behaviour has been corrected. COMMENT ON INDEX now permits full 
qualification of an index name, for example 

COMMENT ON INDEX "dba".product.ix_prod_name IS 'Product Description'.

This statement will generate the error TABLE_NOT_FOUND (-141) if the 
table is not in the user's search path (corresponding to how name scope 
is decided for SQL queries) or if the table is a view. Moreover, an 
attempt to COMMENT ON an index by index name only, and where multiple 
indexes of the same name exist, will give the error AMBIGUOUS_INDEX_NAME 
(-678).



================(Release Build  - Engineering Case #227868)================

User tables created by the DBO user were not being populated with data 
when
being unloaded or extracted using the -an or -ac switch.



================(Release Build  - Engineering Case #231079)================

An update statement that specified multiple set clause items for the 
same (non-Java) column as in
	
	UPDATE foo SET c1 = 2, c1 =3

was erroneously allowed.  During execution, only the last set item 
for the column in question had any effect.


================(Release Build  - Engineering Case #233905)================

When starting the network server from the command line or windows without 
specifiying any additional parameters a GUI would pop up where the parameters 
could be specified.  When a server name was specified the resulting 
command line that was generated would be incorrect.  The server name 
would also be used as the database name.  As a result, a user would 
be unable to connect to their database unless they specifed the new 
database name explicitly.  This would only occur when the server name 
specified is different from the default server name.


================(Release Build  - Engineering Case #234276)================

Previously, when resolving an unqualified table reference, the server 
useed the first match it found. The resulting match was arbitrary and 
depended on the state of the database/server,  (specifically the order 
in which rows were returned by SELECT * FROM SYSGROUP). The server will 
now detect that multiple matches exist and will reject the unqualified 
reference with a "Table name is ambguous" error. The following example 
illustrates the corrected behaviour:

	User logged in as "dave"

	create table dave.T1 (c1 int);
	create table bob.T1 (c1 int);

	create table jim.T2 (c1 int);
	create table bob.T2 (c1 int);

	grant group to bob;
	grant membership in group bob to dave;
	grant group to jim;
	grant membership in group jim to dave;

	select * from T1;     <    will access dave.T1 without giving an error, 
even though bob.T1 exists.

	select * from T2;    <     will report an error since T2 is not owned 
by "dave", and could resolve to
	either jim.T2 or bob.T2



================(Release Build  - Engineering Case #236063)================

The system stored procedures sa_conn_properties, sa_conn_properties_by_name, 
and sa_conn_properties_by_conn would only show properties with a property 
number less than or equal to 200. The procedures, sa_eng_properties() 
and sa_db_properties(), also had the same limitation; however, no engine 
or db properties currently have a property number greater than 200.


================(Release Build  - Engineering Case #236346)================

When the setTransactionIsolation method was called for a jConnect connection 
to an ASA database, a statement of the form "set option isolation_level 
= ..." was executed. This statement set the isolation level for the 
current user and is a DDL statement that is logged to the transaction 
log. The isolation level should only be set for the current connection, 
so the statement that is issued has been changed to "set temporary option 
isolation_level = ...". 

The statement that is issued when setTransactionIsolation is called 
is defined in the database table dbo.spt_mda. The problem can be corrected 
in existing databases by executing the following statement:

update dbo.spt_mda set query='set temporary option isolation_level 
=' where mdinfo = 'SET_ISOLATION'


================(Release Build  - Engineering Case #237523)================

When processing a cancel, the server could hang or crash, and the client 
would get a communication error.



================(Release Build  - Engineering Case #238498)================

Dropping a large number of dummy_pub publications (over 1000)  from 
a reload.sql generated by dbunload or dbxtract was extremely time consuming.



================(Release Build  - Engineering Case #240534)================

The engine now provides a new function, errormsg(), which will return 
the error string for either the current sqlstate/sqlcode, or a provided 
sqlstate/sqlcode. The string returned is in the language of the database 
server, *not* the database client.  Also, if the function receives an 
invalid sqlstate or sqlcode, it will return NULL.

The usage for the function is as follows:

- sqlerror(), (i.e., no arguments), returns the error string for the 
current sqlstate/sqlcode.
- sqlerror( sqlcode ), where sqlcode is an integer, returns the error 
string for sqlcode code.
- sqlerror( sqlstate ), where sqlstate is a string, return the error 
string for sqlstate state.



================(Release Build  - Engineering Case #255084)================

With optimization logging ON, (ie set option OPTIMIZATION_LOGGING = 
'on'), a null pointer dereference within the engine would likely occur 
with the next DBISQL connection or disconnect, or possibly on other 
simple SQL statements that do not involve a join. A workaround is to 
restart the database, connect using DBISQLC, and turn the option OFF.



================(Release Build  - Engineering Case #255085)================

The selectivity estimates returned for ptree indexes were based on the 
wrong range (both ends of the range would be off)




                      ******************************                      
                      ** Adaptive Server Anywhere **                      
                      **                          ** 
                      **  Sybase Central Plug-in  **                      
                      ******************************                      

================(Release Build  - Engineering Case #257383)================

A new menu entry, "Close All Windows", has been added, so that when 
closing Sybase Central, the user need not revisit and close every open 
window first.   The new behaviour is that if there are open windows, 
Sybase Central will visit each one and attempt to close it, which may 
require the user to save changes before the window is closed.  If the 
window changes cannot be saved or the user presses cancel, the Sybase 
Central close is cancelled.


================(Release Build  - Engineering Case #257999)================

Double-clicking a referenced-by table would have caused no action to 
occur.  Now, the properties dialog is displayed for the table.  The 
properties popup menu is now also shown on a right-click.



================(Release Build  - Engineering Case #258022)================

When creating a database with the Create Database wizard, jdk1.2.2 selection 
was available, but caused an error when pressing Finish to create the 
database.  The 1.2.2 option has been removed, but 1.1.8 and 1.3 are 
only available.


================(Release Build  - Engineering Case #255450)================

When logging SQL statements while connected to a database, viewing Java 
items was causing Sybase Central to hang.  This has been fixed.


================(Release Build  - Engineering Case #257881)================

Database version and it's capabilities are now reported for pre-8.0 
created databases. True 8.0 created databases report a capability id, 
(instead of a version), and the capabilities on the database.  Database 
version no longer has any significance as capability will differ depending 
on the initial creation method of the database, (and what it was upgraded 
from).



================(Release Build  - Engineering Case #220897)================

The error messages displayed when an attempt to connect fails have been 
improved. Where possible, the software suggests a way to fix the problem. 
If that involves correcting the contents of one of the fields in the 
"Connect" dialog, that field is now automatically given the focus when 
the error message is displayed. 

The software produces enhanced error messages when connecting to ASA 
engines via jConnect and the ODBC bridge. The readability of the messages 
has been improved for non-ASA databases as well, although the Connect 
dialog may not automatically set focus to the errant field in that case.



================(Release Build  - Engineering Case #220952)================

Many menu items were missing mnemonic keyboard equivalents.


================(Release Build  - Engineering Case #231492)================

Creating a column with a user domain name with a space in it would cause 
a syntax error. Now, quotes are put around user domain names, so the 
syntax error will no longer occur.


================(Release Build  - Engineering Case #266332)================

When duplicating a table, column, view or procedure via copy and paste 
operations, the name for the new object used to default to the original 
object's name with a "_copy" suffix appended. Now the "_copy" suffix 
is translated for the current locale.




                      ******************************                      
                      ** Adaptive Server Anywhere **                      
                      **                          ** 
                      **        Utilities         **                      
                      ******************************                      

================(Release Build  - Engineering Case #255359)================

Attempting to run dbisqlc from the Run/Start menu or the command line 
with a spacey path would fail.  For example,

"d:\Sybase\Adaptive Server Anywhere 8\win32\dbisqlc.exe"

would fail with the message
Error at line 1
Missing closing quote
"


================(Release Build  - Engineering Case #238058)================

If a customer has added custom options to the database, a rebuild would 
fail with the error "Invalid option <blah> - no PUBLIC setting exists" 
since the user options are set before the PUBLIC options in the reload.sql 
file.
To fix the problem, editing of the reload.sql is required.


================(Release Build  - Engineering Case #240834)================

If the old logs directory specified for dbunload -ar was the same as 
the current log location, a user would receive the error "Can't use 
log file since the database file has been used more recently".
The problem is fixed by renaming the log file in the old logs directory 
so that a new one is created when the engine is run.  DO NOT delete 
the old log file, as this will break replication.



================(Release Build  - Engineering Case #257389)================

Attempting to close an error dialog with the escape key would fail, 
although a spacebar or return still worked.


================(Release Build  - Engineering Case #257989)================

Running dbunload with one of the -an/ar/ac switch could fail when used 
in conjunction with dbsrv7.  The error received would be "Request to 
start/stop database denied" unless the server was started with the -gd 
all switch.


================(Release Build  - Engineering Case #240554)================

dbunload -ar/an/ac could sometimes cause both the engine and dbunload 
to hang during the reload phase if a cache resize occurred.  Disabling 
cache autosizing would avoid the problem



================(Release Build  - Engineering Case #237356)================

An error caused by code in a stored procedure or within a batch of statements, 
(ie enclosed by BEGIN and END keywords), would not be reported, if the 
procedure or batch did not return a result set. Now it does.



================(Release Build  - Engineering Case #259233)================

A number of bugs related to editing/inserting table data in DBISQL, 
(and Sybase Central), have been fixed:

   --  updating a row that contained a single column now works
   --  when adding row to a table, the  default column valueis now 
used instead of "(NULL)"
   --  if a column did not allow nulls, the initial value used for 
that column was an empty string instead of null.
   --  the prompt to enter a value for read-only, (computed), columns 
has been removed.


================(Release Build  - Engineering Case #260058)================

When attempting to execute some poorly formed SQL statement, ISQL would 
not report an error, causing subsequent valid SQL statements to fail 
with a syntax error. The error message would be prefixed by the bogus 
SQL statement executed previously. This has now been fixed.
	
"Poorly formed SQL statements" include the following:
--  A number
--  A sequence of identifiers that did not start with a word
--  Some punctuation


================(Release Build  - Engineering Case #262979)================

DBISQL would throw an exception when importing an Excel spreadsheet, 
if the first row, (assumed to be column names), includes a cell type 
other than a string, (an integer, for example). This has been fixed.


================(Release Build  - Engineering Case #264277)================

Comments in database objects containing the "go" statement would not 
be ignored when running dbunload -an, -ar or -ac.  This would have resulted 
in a syntax error during the rebuild phase. 
Eg.  The following stored procedure would generate the error:
create procedure /*
Here is a comment
go
*/
DBA.TProc()
begin
  select * from employee
end


================(Release Build  - Engineering Case #265963)================

This change fixes a problem that could cause a NullPointerException 
in a very limited set of conditions when right clicking on the results 
table in DBISQL, or on the "Data" tab in ASA plug-in for Sybase Central.



================(Release Build  - Engineering Case #266170)================

Previously, if you had started DBISQL with the "-odbc" command line 
option, the option was being ignored for CONNECT statements, and the 
jConnect driver was being used instead.  Now, if you give the "-odbc" 
command line option, DBISQL assumes you always want to use the JDBC-ODBC 
bridge when executing CONNECT statements. Also, if you specify a data 
source name on the command line, either by using the "-datasource" option 
or by including a "DSN" or "FDSN" element in a connection string, the 
data source will be assumed for CONNECT statements if no other data 
source is explicitly mentioned in the statement.



================(Release Build  - Engineering Case #228357)================

When the Java ISQL was run in console mode, error messages were being 
sent to the standard output device rather than the standard error device. 
By default, both devices are the command window used to start DBISQL. 
This change allows you to separate the normal output from any error 
messages by using redirection if the operating system supports it.



================(Release Build  - Engineering Case #231841)================

DBISQLC could crash when trying to execute a statement after a failed 
DDL statement such as ALTER TABLE. This has been fixed. In the cases 
affected, the cursor being used to display the previous result set is 
now closed and the data window cleared.



================(Release Build  - Engineering Case #237358)================

The error dialog displayed when there is an error executing a statement, 
(showing the statement and an "OK" button), can now be closed by pressing 
ESC as well as ENTER.



================(Release Build  - Engineering Case #238377)================

If an error was encountered while fetching the results of a SQL statement, 
DBISQL would silently stop fetching and then display what it was about 
to retrieve. Now, a warning is displayed which advises users that the 
data         is incomplete or incorrect.

This shortcoming was noticed when a user attempted to display a NUMERIC 
data type with precision greater than 77 while connected via jConnect. 
jConnect (TDS) has an internal limitation that prevents it from fetching 
NUMERIC values with precision 78 or larger. This limitation caused an 
exception in jConnect, which in turn caused DBISQL to abort fetching 
the result set without reporting an error.

A workaround for this limitation is to use the JDBC-ODBC bridge instead 
of jConnect when connecting to the database.


================(Release Build  - Engineering Case #240437)================

When specifing the name of a script file on DBISQL's command line which 
did not include an extension, and the file really didn't have an extension, 
DBISQL would fail to find the file. (as It would append ".sql" to the 
file name if it wasn't specified). Now, DBISQL checks for the file name 
as-is, and if it does not find it, and if there is no file extension, 
only then will it append ".sql" and search for that file. 





                             ****************                             
                             **  Mobilink  **                             
                             **            ** 
                             ** ASA Client **                             
                             ****************                             

================(Release Build  - Engineering Case #242703)================

Dbmlsync would crash when synchronizing, if a table which had been dropped 
from a publication with a synchronization subscription, was  then altered 
using the ALTER TABLE syntax.



================(Release Build  - Engineering Case #262615)================

Using any dbmlsync hook procedure with the -i switch to specify an end 
script, would have caused dbmlsync to always report the following error:
	SQL statement failed: (-265) Procedure 'immediate' not found
This has now been fixed.


================(Release Build  - Engineering Case #266900)================

Occationally, dbmlsync could have crashed or report 'protocol error' 
when processing the download stream.  This behaviour was more likely 
to be seen when processing tables containing long rows, (excluding blob 
columns).


================(Release Build  - Engineering Case #232494)================

When an ASA client had a syncronization definition that contained a 
table that had a foreign key relationship to a table outside of the 
syncronization definition, then dbmlsync might not order the tables 
correctly in the upload stream to prevent
RI problems on the consolidated database.




                     *********************************                     
                     **          Mobilink           **                     
                     **                             ** 
                     ** Charset Conversion (UNILIB) **                     
                     *********************************                     

================(Release Build  - Engineering Case #258534)================

Using dbmlsync to synchronize UTF8 data from a database on a Windows 
CE device to the consolidated database would incorrectly translate the 
data, causing it to be inserted incorrectly into the consolidated database..





                  **************************************                  
                  **             Mobilink             **                  
                  **                                  ** 
                  ** Java Provider for Sybase Central **                  
                  **************************************                  

================(Release Build  - Engineering Case #255547)================

The MobiLink plugin for Sybase Central did not set the last_download 
timestamp parameter for the synchronization scripts in the "Test Scripts" 
feature.



================(Release Build  - Engineering Case #255904)================

In a Merant Oracle8 connection, although all MobiLink system tables 
are correctly installed, the MobiLink plugin for Sybase Central misidentified 
the non-existence of the MobiLink system tables. This has now been fixed.



================(Release Build  - Engineering Case #262422)================

Some connection scripts, (eg. authenticate_user, authenticate_user_hashed), 
and table scripts (eg. time_statistics, download_statistics), were not 
being correctly tested in the plugin. The plugin now sets the correct 
number of parameters for those scripts.





                       ****************************                       
                       **        Mobilink        **                       
                       **                        ** 
                       ** Synchronization Server **                       
                       ****************************                       

================(Release Build  - Engineering Case #242786)================

Running dbmluser with the -d switch, (delete the given user), was not 
working. The correct behaviour has now been restored.


================(Release Build  - Engineering Case #231704)================

Sometimes the MobiLink server would crash when using serial communications.


================(Release Build  - Engineering Case #255638)================

All JSL scripts which handle cursor or statement events MUST return 
a non-null sql string. If a null string was returned Mobilink did not 
fail and rollback the synchronization. With this fix Mobilink prints 
an error to the log and fails the synchronization.


================(Release Build  - Engineering Case #255087)================

When -vr was in effect, the MobiLink server would crash if either a 
double or a large numeric value was displayed.



================(Release Build  - Engineering Case #241711)================

When using the Merant ODBC driver for Oracle, the Java Synchronization 
Logic scripts would not have executed. Mobilink would report errors 
in the log after attempting to execute the script contents as SQL.


================(Release Build  - Engineering Case #241978)================

The mobilink server would fail to start when the connection was to a 
database with the collation WIN_LATIN5.  Any Turkish collation would 
be affected.  Other database tools may exhibit strange errors.
The error returned is usually "Invalid option 'CONNECTION_AUTHENTICATION' 
-- no PUBLIC setting exists"



================(Release Build  - Engineering Case #259506)================

When the dbmluser utility was used to delete a user from a consolidated 
database, using the -d command-line option, the operation would fail 
with a message similar to the following, (ASA consolidated example):

	ODBC: [Sybase][ODBC Driver][Adaptive Server Anywhere]
	Restricted data type attribute violation: Cannot convert {some_name} 
to a int
	(ODBC State = 07006, Native error code	= -157)

The {some_name} was a publication name from the ml_subscription table 
that referenced the user being deleted.


================(Release Build  - Engineering Case #262549)================

Mismatched final bracket for  MobiLink's -x opition with security options 
specified could crash the MMobiLink server on startup. For example, 
the following command would cause a crash:
dbmlsrv7 -c "dsn=asa70sample;uid=dba;pwd=sql" -x tcpip{security=certicom_tls{certificate=mobilink.crt;certificate_password=tJ1#m6+W})



================(Release Build  - Engineering Case #262555)================

In the same session of synchronization, BLOBs that just have been uploaded 
may not have been filtered out in the download if the BLOB length was 
greater than 255 bytes long.



================(Release Build  - Engineering Case #265830)================

When a stream error occured and the error message contained string substitution, 
then the stream layer may  have crashed or given an error message with 
garbage characters in the substitution. This problem is now fixed. Note, 
this problem would have occurred with MobiLink clients as well.



================(Release Build  - Engineering Case #266949)================

If a table with a NULL-able BLOB column (ie. LONG VARCHAR or LONG BINARY) 
was uploaded, the MobiLink server could have started to  misinterpreting 
the upload stream, most likely resulting in a failed upload, but possibly 
resulting in bad data being synchronized. The problem only occurred 
when the remote table's primary-key columns were NOT the first columns 
in the CREATE TABLE statement. For example, the following remote table 
would not show the problem:

create table ok_table (
	pk		integer primary key not null,
	blob_col	long varchar
)

while the following table would have shown the problem:

create table problem_table (
	blob_col	long varchar,
	pk		integer primary key not null
)




                        ***************************                        
                        **       UltraLite       **                        
                        **                       ** 
                        ** Analyser Java Classes **                        
                        ***************************                        

================(Release Build  - Engineering Case #265739)================

Selecting DISTINCT values and ordering by those columns could have produced 
an UltraLite analyzer error
For example:
SELECT DISTINCT x FROM T ORDER BY x
would have generated an error like the following in the UltraLite analyzer:
"System could not find the class 'ianywhere.ultralite.analyzer.DfoDistinctOrdered' 
..." 
This problem has now been fixed.




                           ********************                           
                           **   UltraLite    **                           
                           **                ** 
                           ** Code Generator **                           
                           ********************                           

================(Release Build  - Engineering Case #265387)================

ArrayOutOfBound exceptions could have occurred in the indexing code 
for situations where a portion of an index was tightly packed and another 
insertion took place.




                          ***********************                          
                          **     UltraLite     **                          
                          **                   ** 
                          ** Runtime Libraries **                          
                          ***********************                          

================(Release Build  - Engineering Case #260710)================

Excessive memory was used to perform operations such as COMMIT or SYNCHRONIZE 
and was noit released until the associated connection was closed.


================(Release Build  - Engineering Case #265657)================

When a statement with a predicate checking for an indexed column LIKE 
a host variable, (for example: "SELECT x FROM T WHERE y LIKE ?" if there 
was an index on y), would have given incorrect results.  This could 
have happened if a compiler was used  that defaulted to signed chars 
and the host variable contained characters greater than 0x7F.  This 
has now been fixed.




                         ************************                         
                         **     UltraLite      **                         
                         **                    ** 
                         ** Sample Application **                         
                         ************************                         

================(Release Build  - Engineering Case #264831)================

Calls to inline C++ methods could fail in Palm GNU applications if compiling 
with the -O compiler switch, (see QTS 264830).  The "-fno-inline" compile 
option is now used by default in the MobileBuilder custdb sample for 
Palm.

